﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace Bundled
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataSet dailyDeal = new DataSet();
                dailyDeal.ReadXml(MapPath("~/Resources/XML/DailyDeal.xml"));

                //ddImg.ImageUrl = "~/Resources/Images/2511xBlack.jpg";
                ddProductID.Text = dailyDeal.Tables[0].Rows[0]["ProductID"].ToString();
                ddName.Text = dailyDeal.Tables[0].Rows[0]["ProductName"].ToString();
                ddPrice.Text = dailyDeal.Tables[0].Rows[0]["Price"].ToString();
            }
        }
    }
}